#!/bin/sh
#set -e

yyyy=2020
mm=09
dd=18
url="https://mirrors.tuna.tsinghua.edu.cn/kernel/firmware/"
version=linux-firmware-${yyyy}${mm}${dd}

wget ${url}${version}.tar.xz

echo "解压中..."
xz -dk ${version}.tar.xz
tar xf ${version}.tar

cd ${version}

echo "请输入您的密码以继续安装"
sudo make install
sudo update-initramfs -uk all
echo
echo "\e[42m 安装完成 \e[0m"
